set(DAE_SOURCES
dae/daeMetaSequence.cpp
dae/daeUtils.cpp
dae/daeElement.cpp
dae/daeRawResolver.cpp
dae/daeMetaCMPolicy.cpp
dae/daeMetaChoice.cpp
dae/daeAtomicType.cpp
dae/daeStringTable.cpp
dae/daeDom.cpp
dae/dae.cpp
dae/daeMetaGroup.cpp
dae/daeRefCountedObj.cpp
dae/daeError.cpp
dae/daeZAEUncompressHandler.cpp
dae/daeIDRef.cpp
dae/daeStringRef.cpp
dae/daeMetaAny.cpp
dae/daeDocument.cpp
dae/daeMetaElement.cpp
dae/daeURI.cpp
dae/daeErrorHandler.cpp
dae/domAny.cpp
dae/daeDatabase.cpp
dae/daeMetaAttribute.cpp
dae/daeArray.cpp
dae/daeMemorySystem.cpp
dae/daeIOPluginCommon.cpp
dae/daeMetaElementAttribute.cpp
dae/daeStandardURIResolver.cpp
dae/daeTinyXMLPlugin.cpp
dae/daeSIDResolver.cpp
)
set(DOM_SOURCES
1.5/dom/domAxis.cpp
1.5/dom/domSampler.cpp
1.5/dom/domProfile_cg.cpp
1.5/dom/domLibrary_joints.cpp
1.5/dom/domInstance_physics_model.cpp
1.5/dom/domSolids.cpp
1.5/dom/domBox.cpp
1.5/dom/domInstance_node.cpp
1.5/dom/domCurve.cpp
1.5/dom/domGles_param.cpp
1.5/dom/domGles2_pipeline_settings.cpp
1.5/dom/domCg_array.cpp
1.5/dom/domPhysics_material.cpp
1.5/dom/domInstance_formula.cpp
1.5/dom/domCommon_float2_or_param.cpp
1.5/dom/domMorph.cpp
1.5/dom/domSidref_array.cpp
1.5/dom/domImage_source.cpp
1.5/dom/domCOLLADA.cpp
1.5/dom/domHyperbola.cpp
1.5/dom/domEllipsoid.cpp
1.5/dom/domCommon_param.cpp
1.5/dom/domLibrary_materials.cpp
1.5/dom/domLight.cpp
1.5/dom/domEdges.cpp
1.5/dom/domMinmax.cpp
1.5/dom/domNode.cpp
1.5/dom/domIdref_array.cpp
1.5/dom/domAxis_constraint.cpp
1.5/dom/domFx_code.cpp
1.5/dom/domAnimation_clip.cpp
1.5/dom/domInstance_physics_material.cpp
1.5/dom/domPolygons.cpp
1.5/dom/domProfile_common.cpp
1.5/dom/domOrigin.cpp
1.5/dom/domKinematics_frame.cpp
1.5/dom/domKinematics_param.cpp
1.5/dom/domParabola.cpp
1.5/dom/domFx_sampler3D.cpp
1.5/dom/domInstance_camera.cpp
1.5/dom/domGlsl_program.cpp
1.5/dom/domGles_texcombiner_command_alpha.cpp
1.5/dom/domKinematics_bind.cpp
1.5/dom/domTrifans.cpp
1.5/dom/domCapsule.cpp
1.5/dom/domGles_sampler_states.cpp
1.5/dom/domGles2_shader.cpp
1.5/dom/domLibrary_animation_clips.cpp
1.5/dom/domScale.cpp
1.5/dom/domGles_texcombiner_command_rgb.cpp
1.5/dom/domLibrary_physics_models.cpp
1.5/dom/domKinematics.cpp
1.5/dom/domTechnique.cpp
1.5/dom/domOrient.cpp
1.5/dom/domSkin.cpp
1.5/dom/domAccessor.cpp
1.5/dom/domTranslate.cpp
1.5/dom/domCg_setparam.cpp
1.5/dom/domCurves.cpp
1.5/dom/domFloat_array.cpp
1.5/dom/domProfile_bridge.cpp
1.5/dom/domFx_include.cpp
1.5/dom/domFx_setparam.cpp
1.5/dom/domPhysics_model.cpp
1.5/dom/domCone.cpp
1.5/dom/domKinematics_scene.cpp
1.5/dom/domLookat.cpp
1.5/dom/domConvex_mesh.cpp
1.5/dom/domKinematics_axis_info.cpp
1.5/dom/domTorus.cpp
1.5/dom/domSource.cpp
1.5/dom/domFx_sampler_states.cpp
1.5/dom/domLibrary_effects.cpp
1.5/dom/domNurbs_surface.cpp
1.5/dom/domLibrary_images.cpp
1.5/dom/domBind_joint_axis.cpp
1.5/dom/domFx_profile.cpp
1.5/dom/domLibrary_kinematics_models.cpp
1.5/dom/domGlsl_array.cpp
1.5/dom/domConstants.cpp
1.5/dom/domCommon_float_or_param.cpp
1.5/dom/domP.cpp
1.5/dom/domWires.cpp
1.5/dom/domMotion_effector_info.cpp
1.5/dom/domKinematics_model.cpp
1.5/dom/domBool_array.cpp
1.5/dom/domFx_common_float_or_param.cpp
1.5/dom/domFx_target.cpp
1.5/dom/domInstance_with_extra.cpp
1.5/dom/domSkew.cpp
1.5/dom/domInput_global.cpp
1.5/dom/domRigid_body.cpp
1.5/dom/domJoint_limits.cpp
1.5/dom/domInstance_kinematics_model.cpp
1.5/dom/domLibrary_physics_materials.cpp
1.5/dom/domImage_mips.cpp
1.5/dom/domChannel.cpp
1.5/dom/domKinematics_newparam.cpp
1.5/dom/domInstance_rigid_constraint.cpp
1.5/dom/domGles_sampler.cpp
1.5/dom/domLibrary_cameras.cpp
1.5/dom/domFx_samplerDEPTH.cpp
1.5/dom/domTristrips.cpp
1.5/dom/domShells.cpp
1.5/dom/domFx_clearstencil.cpp
1.5/dom/domFx_cleardepth.cpp
1.5/dom/domCamera.cpp
1.5/dom/domGles_texcombiner_argument_alpha.cpp
1.5/dom/domLibrary_visual_scenes.cpp
1.5/dom/domLinestrips.cpp
1.5/dom/domTypes.cpp
1.5/dom/domInstance_image.cpp
1.5/dom/domGles_texture_pipeline.cpp
1.5/dom/domForce_field.cpp
1.5/dom/domGlsl_shader.cpp
1.5/dom/domFormula_newparam.cpp
1.5/dom/domRotate.cpp
1.5/dom/domGlsl_value.cpp
1.5/dom/domGl_pipeline_settings.cpp
1.5/dom/domTriangles.cpp
1.5/dom/domPlane.cpp
1.5/dom/domProfile_gles2.cpp
1.5/dom/domLibrary_nodes.cpp
1.5/dom/domGles_texcombiner_command.cpp
1.5/dom/domKinematics_connect_param.cpp
1.5/dom/domLibrary_physics_scenes.cpp
1.5/dom/domTargetable_float3.cpp
1.5/dom/domMotion.cpp
1.5/dom/domFx_sources.cpp
1.5/dom/domGles_texcombiner_argument_rgb.cpp
1.5/dom/domName_array.cpp
1.5/dom/domInstance_effect.cpp
1.5/dom/domMatrix.cpp
1.5/dom/domFx_depthtarget.cpp
1.5/dom/domSurface_curves.cpp
1.5/dom/domCommon_sidref_or_param.cpp
1.5/dom/domLibrary_articulated_systems.cpp
1.5/dom/domInstance_light.cpp
1.5/dom/domFx_rendertarget.cpp
1.5/dom/domFx_sampler2D.cpp
1.5/dom/domCommon_int_or_param.cpp
1.5/dom/domSphere.cpp
1.5/dom/domMesh.cpp
1.5/dom/domGles_newparam.cpp
1.5/dom/domFormula.cpp
1.5/dom/domFx_sampler.cpp
1.5/dom/domFx_colortarget.cpp
1.5/dom/domKinematics_index.cpp
1.5/dom/domAnimation.cpp
1.5/dom/domGles2_pass.cpp
1.5/dom/domFx_sampler1D.cpp
1.5/dom/domLibrary_formulas.cpp
1.5/dom/domEffect.cpp
1.5/dom/domFx_common_color_or_texture.cpp
1.5/dom/domExtra.cpp
1.5/dom/domProfile_glsl.cpp
1.5/dom/domInt_array.cpp
1.5/dom/domInstance_geometry.cpp
1.5/dom/domGlsl_newparam.cpp
1.5/dom/domImage.cpp
1.5/dom/domBrep.cpp
1.5/dom/domSpline.cpp
1.5/dom/domSurface.cpp
1.5/dom/domLibrary_geometries.cpp
1.5/dom/domSurfaces.cpp
1.5/dom/domInstance_controller.cpp
1.5/dom/domCircle.cpp
1.5/dom/domLine.cpp
1.5/dom/domKinematics_technique.cpp
1.5/dom/domLibrary_force_fields.cpp
1.5/dom/domCommon_bool_or_param.cpp
1.5/dom/domInput_local_offset.cpp
1.5/dom/domCg_newparam.cpp
1.5/dom/domLines.cpp
1.5/dom/domCylinder.cpp
1.5/dom/domGles2_value.cpp
1.5/dom/domToken_array.cpp
1.5/dom/domFx_samplerRECT.cpp
1.5/dom/domFx_clearcolor.cpp
1.5/dom/domInstance_rigid_body.cpp
1.5/dom/domEllipse.cpp
1.5/dom/domFormula_technique.cpp
1.5/dom/domGles_texture_constant.cpp
1.5/dom/domFormula_setparam.cpp
1.5/dom/domInstance_force_field.cpp
1.5/dom/domInput_local.cpp
1.5/dom/domLibrary_kinematics_scenes.cpp
1.5/dom/domLibrary_controllers.cpp
1.5/dom/domPolylist.cpp
1.5/dom/domMotion_axis_info.cpp
1.5/dom/domInstance_articulated_system.cpp
1.5/dom/domGeometry.cpp
1.5/dom/domRigid_constraint.cpp
1.5/dom/domPcurves.cpp
1.5/dom/domCg_param.cpp
1.5/dom/domInstance_material.cpp
1.5/dom/domProfile_gles.cpp
1.5/dom/domFx_newparam.cpp
1.5/dom/domSwept_surface.cpp
1.5/dom/domLimits_sub.cpp
1.5/dom/domParam.cpp
1.5/dom/domKinematics_limits.cpp
1.5/dom/domFaces.cpp
1.5/dom/domArticulated_system.cpp
1.5/dom/domGles_pipeline_settings.cpp
1.5/dom/domInstance_joint.cpp
1.5/dom/domController.cpp
1.5/dom/domTargetable_float.cpp
1.5/dom/domMotion_technique.cpp
1.5/dom/domTargetable_float4.cpp
1.5/dom/domGles_texenv_command.cpp
1.5/dom/domFx_common_transparent.cpp
1.5/dom/domFx_common_newparam.cpp
1.5/dom/domMaterial.cpp
1.5/dom/domCg_pass.cpp
1.5/dom/domAsset.cpp
1.5/dom/domGles2_program.cpp
1.5/dom/domFx_stenciltarget.cpp
1.5/dom/domFx_annotate.cpp
1.5/dom/domJoint.cpp
1.5/dom/domNurbs.cpp
1.5/dom/domLink.cpp
1.5/dom/domInstance_kinematics_scene.cpp
1.5/dom/domCg_user.cpp
1.5/dom/domBind_kinematics_model.cpp
1.5/dom/domLibrary_lights.cpp
1.5/dom/domGles2_newparam.cpp
1.5/dom/domBind_material.cpp
1.5/dom/domVisual_scene.cpp
1.5/dom/domVertices.cpp
1.5/dom/domPhysics_scene.cpp
1.5/dom/domKinematics_setparam.cpp
1.5/dom/domLibrary_animations.cpp
1.5/dom/domKinematics_model_technique.cpp
1.5/dom/domFx_samplerCUBE.cpp
)
set(MODULE_SOURCES
modules/STLDatabase/daeSTLDatabase.cpp
modules/stdErrPlugin/stdErrPlugin.cpp
modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp
)

add_definitions(-DPCRE_STATIC)

include_directories( ${CMAKE_SOURCE_DIR}/3dPart/collada/dom/include )
include_directories( ${CMAKE_SOURCE_DIR}/3dPart/collada/dom/include/1.5 )
include_directories( ${CMAKE_SOURCE_DIR}/3dPart/minizip/include )
include_directories( ${CMAKE_SOURCE_DIR}/3dPart/tinyxml )
include_directories( ${CMAKE_SOURCE_DIR}/3dPart/pcre )
include_directories( ${CMAKE_BINARY_DIR}/3dPart/pcre )
include_directories( ${CMAKE_SOURCE_DIR}/3dPart/boost )

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
       include_directories( ${CMAKE_SOURCE_DIR}/3dPart/libxml2-win32/include )
       include_directories( ${CMAKE_SOURCE_DIR}/3dPart/iconv-win32/include )
else(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
	include_directories( /usr/include/libxml2 )
endif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")



add_library(dom STATIC
	${DAE_SOURCES}
	${DOM_SOURCES}
	${MODULE_SOURCES}
	)

